package com.qdu.servlet;

import com.qdu.service.impl.LogServiceImpl;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *在管理员的日志显示页面删除当前页面的日志
 * @author Lenovo
 */
@WebServlet("/dtls")
public class deleteThisLogServlet extends HttpServlet{

    LogServiceImpl logserviceimpl=new LogServiceImpl();
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        
        String logId=req.getParameter("id");
        logserviceimpl.deleteThisLog(logId);
        resp.sendRedirect("adtl");//删除完毕之后重定向到servlet
    }
    
    
}
